package com.bifrost.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author 里昂
 * @com.bifrost.model
 * @wechat-mall
 * @lee Create Class on 2018/4/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("商品添加数据模型")
@Builder
public class ProductAddModel implements Serializable {

    @ApiModelProperty(value = "商品sku数据集合",name = "skuModels")
    @Valid
    private List<ProductSkuModel> skuModels;
    @ApiModelProperty(value = "商品基本数据",name = "productBasicModel")
    @NotNull(message = "基本数据不能为空")
    @Valid
    private ProductBasicModel productBasicModel;

}
